]> dgit.raspbian.org Git - gnome-shell.git/commit
cleanup: Use Function.prototype.bind()
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 2 Dec 2017 00:27:35 +0000 (01:27 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 21 Feb 2018 13:55:02 +0000 (13:55 +0000)
commit3b1330880fbaa1c1f98c912d6d41fe14af18e3eb
tree9e31c3d4ff2213580088704360ef9e94adbe7725
parent213e38c2efebd44545e3a96604517d318ef21efc
cleanup: Use Function.prototype.bind()

When not using arrow notation with anonymous functions, we use Lang.bind()
to bind `this` to named callbacks. However since ES5, this functionality
is already provided by Function.prototype.bind() - in fact, Lang.bind()
itself uses it when no extra arguments are specified. Just use the built-in
function directly where possible, and use arrow notation in the few places
where we pass additional arguments.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/23
100 files changed:
HACKING
js/extensionPrefs/main.js
js/gdm/authPrompt.js
js/gdm/loginDialog.js
js/gdm/oVirt.js
js/gdm/realmd.js
js/gdm/util.js
js/misc/extensionUtils.js
js/misc/history.js
js/misc/ibusManager.js
js/misc/inputMethod.js
js/misc/loginManager.js
js/misc/objectManager.js
js/misc/smartcardManager.js
js/misc/util.js
js/misc/weather.js
js/portalHelper/main.js
js/ui/altTab.js
js/ui/animation.js
js/ui/appDisplay.js
js/ui/appFavorites.js
js/ui/audioDeviceSelection.js
js/ui/background.js
js/ui/boxpointer.js
js/ui/calendar.js
js/ui/closeDialog.js
js/ui/components/__init__.js
js/ui/components/automountManager.js
js/ui/components/autorunManager.js
js/ui/components/keyring.js
js/ui/components/networkAgent.js
js/ui/components/polkitAgent.js
js/ui/components/telepathyClient.js
js/ui/ctrlAltTab.js
js/ui/dash.js
js/ui/dateMenu.js
js/ui/dialog.js
js/ui/dnd.js
js/ui/endSessionDialog.js
js/ui/extensionDownloader.js
js/ui/extensionSystem.js
js/ui/focusCaretTracker.js
js/ui/iconGrid.js
js/ui/kbdA11yDialog.js
js/ui/keyboard.js
js/ui/layout.js
js/ui/lightbox.js
js/ui/lookingGlass.js
js/ui/magnifier.js
js/ui/main.js
js/ui/messageList.js
js/ui/messageTray.js
js/ui/modalDialog.js
js/ui/mpris.js
js/ui/notificationDaemon.js
js/ui/osdMonitorLabeler.js
js/ui/osdWindow.js
js/ui/overview.js
js/ui/overviewControls.js
js/ui/padOsd.js
js/ui/panel.js
js/ui/panelMenu.js
js/ui/pointerWatcher.js
js/ui/popupMenu.js
js/ui/remoteMenu.js
js/ui/remoteSearch.js
js/ui/runDialog.js
js/ui/screenShield.js
js/ui/screencast.js
js/ui/screenshot.js
js/ui/search.js
js/ui/shellDBus.js
js/ui/shellEntry.js
js/ui/shellMountOperation.js
js/ui/slider.js
js/ui/status/accessibility.js
js/ui/status/bluetooth.js
js/ui/status/brightness.js
js/ui/status/keyboard.js
js/ui/status/location.js
js/ui/status/network.js
js/ui/status/nightLight.js
js/ui/status/power.js
js/ui/status/rfkill.js
js/ui/status/screencast.js
js/ui/status/system.js
js/ui/status/thunderbolt.js
js/ui/status/volume.js
js/ui/switcherPopup.js
js/ui/unlockDialog.js
js/ui/userWidget.js
js/ui/viewSelector.js
js/ui/windowAttentionHandler.js
js/ui/windowManager.js
js/ui/workspace.js
js/ui/workspaceSwitcherPopup.js
js/ui/workspaceThumbnail.js
js/ui/workspacesView.js
js/ui/xdndHandler.js
tests/interactive/scroll-view-sizing.js